import 'package:flutter/material.dart';
import 'package:icooker/configs/mock_datas.dart';
import 'package:icooker/pages/payer/jcchewievideo_player.dart';
import 'package:kasax/kasax.dart';

/// 食杰
class ExcellentPage extends StatefulWidget {
  const ExcellentPage({Key? key}) : super(key: key);

  @override
  _ExcellentPageState createState() => _ExcellentPageState();
}

class _ExcellentPageState extends State<ExcellentPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: ListView.separated(
            itemBuilder: (context, index) {
              return ListTile(
                onTap: () {
                  RouteUtils.push(
                      context,
                      JCChewieVideoPlayer(
                        videoUr: URL_HTTP_VIDEOS[index],
                      ));
                },
                title: Text("测试视频 - $index"),
              );
            },
            separatorBuilder: (context, index) {
              return Divider();
            },
            itemCount: URL_HTTP_VIDEOS.length),
      ),
    );
  }
}
